HC: sidebars and vertical toolbars with borders
authorJakub Steiner <jimmac@gmail.com>
Tue, 2 Dec 2014 14:00:30 +0000 (15:00 +0100)
committerJakub Steiner <jimmac@gmail.com>
Wed, 3 Dec 2014 10:37:21 +0000 (11:37 +0100)
- the assumption for vertical toolbar being on the left is perhaps
  a little daring, but...

https://bugzilla.gnome.org/show_bug.cgi?id=740859

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk.css

index 9a7c212f0891a7401e49b5b9b128f34e18af5da8..3fff4f72be8cc280f77727a568b29a13b046592f 100644 (file)
@@ -828,6 +828,13 @@ GtkComboBox {
     border-width: 0 0 1px;
     padding: 3px;
   }
+  &.vertical {
+    border-right: 1px solid $borders_color;
+    &:dir(rtl) {
+      border-right: none;
+      border-left: 1px solid $borders_color;
+    }
+  }
 }
 
 %inset-bar {
@@ -1990,10 +1997,7 @@ GtkFileChooserDialog {
  ***********/
 
 .sidebar {
-  border-width: 1px 0 0 0;
-  border-style: solid;
-  border-color: $borders_color;
-  &:dir(rtl) { border-width: 0 0 0 1px; }
+  border: none;
   &:backdrop {
     background-color: $bg_color;
   }
@@ -2001,6 +2005,14 @@ GtkFileChooserDialog {
   &:selected {
     @extend %selected_items;
   }
+
+  & > GtkScrolledWindow > .frame {
+    border-right: 1px solid $borders_color;
+    &:dir(rtl) {
+      border-right: none;
+      border-left: 1px solid $borders_color;
+    }
+  }
 }
 
 // Places sidebar is a special case, since the view here have to look like chrome not content, so we override text color
index aa534bc512a02949aa73078e1ff3a2afeda5e667..41ec4870193d00eda7144e095eb741984e7ab683 100644 (file)
@@ -946,6 +946,11 @@ GtkComboBox {
   .toolbar.search-bar {
     border-width: 0 0 1px;
     padding: 3px; }
+  .toolbar.vertical {
+    border-right: 1px solid #7f7f7f; }
+    .toolbar.vertical:dir(rtl) {
+      border-right: none;
+      border-left: 1px solid #7f7f7f; }
 
 .toolbar.inline-toolbar, .toolbar.search-bar {
   border-style: solid;
@@ -2173,13 +2178,14 @@ GtkFileChooserDialog .dialog-action-box {
  * Sidebar *
  ***********/
 .sidebar {
-  border-width: 1px 0 0 0;
-  border-style: solid;
-  border-color: #7f7f7f; }
-  .sidebar:dir(rtl) {
-    border-width: 0 0 0 1px; }
+  border: none; }
   .sidebar:backdrop {
     background-color: #fff; }
+  .sidebar > GtkScrolledWindow > .frame {
+    border-right: 1px solid #7f7f7f; }
+    .sidebar > GtkScrolledWindow > .frame:dir(rtl) {
+      border-right: none;
+      border-left: 1px solid #7f7f7f; }
 
 GtkPlacesSidebar.sidebar .view {
   color: #000;